import * as http from '@/utils/request'

const CATEGORY_BASE_URL = '/category'

/** 分类相关请求 */
const CategoryApi = {
  getCategoryList: () => {
    return http.getList<CategoryVo>(`${CATEGORY_BASE_URL}/getCategoryList`)
  },
}

export default CategoryApi

/** 响应参数 */
export interface CategoryVo {
  id?: number
  name?: string
  description?: string
}
